<?php
/**
 * 充值金币列表
 * @return
 * @author yuncran@126.com
 */

namespace app\model;

use app\BaseModel;
use app\CacheKey;

class RechargeGoldModel extends BaseModel
{

    protected $name = 'recharge_gold';

    protected $pk = "id";


    public static function getRechargeList()
    {
        $rechargeList = self::getModel()->withoutField(['update_time'])->where('status',1)->cache(true, CacheKey::gold_list)->select();
        return empty($rechargeList) ? [] : $rechargeList;
    }
}